
/*********************************  COPYRIGHT 2020 --------  *********  BEGIN OF FILE  ********************************/

/**********************************************************************
* @file           : pwm.h
* @author         : --
* @version        : --
* @date           : 2020-09-09
* @brief          : Header for pwm.c module
* @Description    : --
**********************************************************************/

/*-- Define to prevent recursive inclusion --------------------------*/
#ifndef __PWM_H
#define __PWM_H

 

/* Includes  == 文件包含 --------------------------------------------*/
#include "support.h"



/*-- Private typedef ------------------------------------------------*/
/*-- Private define -------------------------------------------------*/

//-----------------------------------------//
#define PWM_BLDC_PERIOD   4800			//5142 = 14k
#define PWM_HEAT_PERIOD   10000



/*-- Private macro --------------------------------------------------*/
/*-- Private variables ----------------------------------------------*/

//-----------------------------------------//



/*-- Private function prototypes ------------------------------------*/
void PWM_Config(void);
void PWM_BLDC_Stop(u8 ch);
void PWM_BLDC_SetWidth(u8 ch, u16 width);
void PWM_HEAT_SetWidth(u16 width);



/*-- Define to prevent recursive inclusion --------------------------*/
#endif /* __PWM_H */

/*********************************  COPYRIGHT 2020 --------  *********  END OF FILE  **********************************/
